package me.helllp.dake.iam.core.convert;

import me.helllp.dake.iam.core.bo.ApplicationBo;
import me.helllp.dake.iam.core.po.DakeApplication;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 应用的结构转换器
 */
@Mapper(componentModel = "spring")
public interface ApplicationConvert {
    ApplicationConvert INSTANCE = Mappers.getMapper(ApplicationConvert.class);

    ApplicationBo toApplicationBo(DakeApplication application);

    DakeApplication toApplication(ApplicationBo bo);
}
